package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * created by wangjunfu on 2022-03-30 15:30:10
 */
public class MesProducePassStationDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private Integer produceId;
    private Integer shipId;
    private Integer processId;
    private Integer produceLine;
    private Integer equipId;
    private Integer passType;
    private Integer totalCount;
    private Integer passCount;
    private Integer goodCount;
    private Integer badCount;
    private BigDecimal goodRate;
    private Integer operator;
    private Integer depId;
    private Date operateTime;
    private Integer passStatus;
    private String remark;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String produceName;
    private String shipName;
    private String processName;
    private String produceLineName;
    private String equipName;
    private String passTypeName;

    private String operatorCn;
    private String operateTimeSr;
    private String depName;

    private List<MesProducePassStationDetailDTO> passDetailList;  //过站详情列表

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public Integer getProduceId() {
        return produceId;
    }

    public void setProduceId(Integer produceId) {
        this.produceId = produceId;
    }

    public Integer getShipId() {
        return shipId;
    }

    public void setShipId(Integer shipId) {
        this.shipId = shipId;
    }

    public Integer getProcessId() {
        return processId;
    }

    public void setProcessId(Integer processId) {
        this.processId = processId;
    }

    public Integer getProduceLine() {
        return produceLine;
    }

    public void setProduceLine(Integer produceLine) {
        this.produceLine = produceLine;
    }

    public Integer getEquipId() {
        return equipId;
    }

    public void setEquipId(Integer equipId) {
        this.equipId = equipId;
    }

    public Integer getPassType() {
        return passType;
    }

    public void setPassType(Integer passType) {
        this.passType = passType;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getPassCount() {
        return passCount;
    }

    public void setPassCount(Integer passCount) {
        this.passCount = passCount;
    }

    public Integer getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(Integer goodCount) {
        this.goodCount = goodCount;
    }

    public Integer getBadCount() {
        return badCount;
    }

    public void setBadCount(Integer badCount) {
        this.badCount = badCount;
    }

    public BigDecimal getGoodRate() {
        return goodRate;
    }

    public void setGoodRate(BigDecimal goodRate) {
        this.goodRate = goodRate;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public Integer getDepId() {
        return depId;
    }

    public void setDepId(Integer depId) {
        this.depId = depId;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Integer getPassStatus() {
        return passStatus;
    }

    public void setPassStatus(Integer passStatus) {
        this.passStatus = passStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getProduceName() {
        return produceName;
    }

    public void setProduceName(String produceName) {
        this.produceName = produceName;
    }

    public String getShipName() {
        return shipName;
    }

    public void setShipName(String shipName) {
        this.shipName = shipName;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getProduceLineName() {
        return produceLineName;
    }

    public void setProduceLineName(String produceLineName) {
        this.produceLineName = produceLineName;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getPassTypeName() {
        return passTypeName;
    }

    public void setPassTypeName(String passTypeName) {
        this.passTypeName = passTypeName;
    }

    public String getOperatorCn() {
        return operatorCn;
    }

    public void setOperatorCn(String operatorCn) {
        this.operatorCn = operatorCn;
    }

    public String getOperateTimeSr() {
        if (operateTimeSr == null || operateTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (operateTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(operateTime.getTime()));
            }
        } else {
            return operateTimeSr;
        }
    }

    public void setOperateTimeSr(String operateTimeSr) {
        this.operateTimeSr = operateTimeSr;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public List<MesProducePassStationDetailDTO> getPassDetailList() {
        return passDetailList;
    }

    public void setPassDetailList(List<MesProducePassStationDetailDTO> passDetailList) {
        this.passDetailList = passDetailList;
    }
}